import java.io.File;
import java.io.IOException;

public class example2 {

    public static void main(String[] args) throws IOException {
        File file = new File("E:/启迪/1/2.txt");
        System.out.println(file.exists());
        System.out.println(file.createNewFile());
        System.out.println(file.canExecute());
        System.out.println(file.canRead());
        System.out.println(file.canWrite());
        System.out.println(file.exists());
        System.out.println(file.delete());
        System.out.println(file.canExecute());
        System.out.println(file.canRead());
        System.out.println(file.canWrite());
        System.out.println(file.exists());
    }
}
